package com.zhuang.chapter07.work01;

public class EmployeeMain {
	public static void main(String[] args) {
		Employee employee1 = new SaridEmlye("李四", 3, 6000);
		Employee employee2 = new HourlyEmployee("王五", 7, 50, 180);
		Employee employee3 = new SalesEmployee("赵六", 11, 6500, 0.2);
		Employee employee4 = new BasePlusSalesEmployee("田七", 4, 5000, 0.3, 2000);
		Employee[] employees = new Employee[] { employee1, employee2, employee3, employee4 };

		for (Employee employee : employees) {
			System.out.println(employee.getName() + "工资是-->" + employee.getSalary(employee.getMonth()) + "元");
		}
	}
}
